package com.tenglong.map.service.impl;

import com.tenglong.map.dao.SysAddrMapper;
import com.tenglong.map.pojo.SysAddr;
import com.tenglong.map.pojo.SysAddrExample;
import com.tenglong.map.service.AddrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class AddrServiceImpl implements AddrService {

    @Autowired
    private SysAddrMapper addrMapper;

    @Override
    public List getAddress() {
        SysAddrExample example=new SysAddrExample();
        List<SysAddr> sysAddrs=addrMapper.selectByExample(example);
        List list=new ArrayList();
        if (!sysAddrs.isEmpty()){
            for (SysAddr addr:sysAddrs
                    ) {
                list.add(addr.getAddress());
            }
        }
        return new ArrayList();
    }
}
